package com.bus.core.dao;

import java.util.List;

import com.bus.common.hibernate4.Updater;
import com.bus.core.entity.BusSite;

/**
 * 站点DAO接口
 */
public interface BusSiteDao {
	/**
	 * 获得站点数量
	 * 
	 * @param cacheable
	 * @return
	 */
	public int siteCount(boolean cacheable);

	/**
	 * 获得所有站点
	 * 
	 * @param cacheable
	 * @return
	 */
	public List<BusSite> getList(boolean cacheable);
	
	public int  getCountByProperty(String property);

	public BusSite findByDomain(String domain);
	

	public BusSite findById(Integer id);

	public BusSite save(BusSite bean);

	public BusSite updateByUpdater(Updater<BusSite> updater);

	public BusSite deleteById(Integer id);

	
}